import request from '@/utils/request'

// 查询用户可查看线路列表 
export function userRouteList(query) {
  return request({
    url: '/basic/userRoute/list',
    method: 'get',
    params: query
  })
}

// 新增用户可查看线路
export function addUserRoute(data) {
  return request({
    url: '/basic/userRoute',
    method: 'post',
    data: data
  })
}

// 查询用户可查看车辆列表 
export function userVehicleList(query) {
  return request({
    url: '/basic/userVehicle/list',
    method: 'get',
    params: query
  })
}

// 新增用户可查看车辆
export function addUserVehicle(data) {
  return request({
    url: '/basic/userVehicle',
    method: 'post',
    data: data
  })
}

